#!/bin/sh  
#filename: publish-admin.sh

targetPath="/home/$USER/src/FengXianWater/fxwater-admin/target"
# 运行目录
runPath="/home/$USER/opt/fxwater-admin"

# publish
echo "Publishing fxwater admin ... The installation directory is $runPath"
cd $targetPath
cp fxwater-admin.jar $runPath
echo "Publish fxwater success! Now you can go to the installation directory($runPath) and restart the server."

cd $runPath
sh restart.sh
